<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引入Shiro标签库--%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>



<%--获取身份(user对象)的属性Username--%>
<div>
    欢迎,<shiro:principal property="username"/>
    &nbsp;&nbsp;
    <a href="${pageContext.request.contextPath}/logout" style="float: right;">退出登录</a>
</div>
<div>
    <shiro:hasPermission name="user:list">
    <a href="${pageContext.request.contextPath}/user/list.do">员工管理</a><br>
    </shiro:hasPermission>
    <shiro:hasPermission name="department:list">
    <a href="${pageContext.request.contextPath}/department/list.do">部门管理</a><br>
    </shiro:hasPermission>
    <shiro:hasPermission name="role:list">
    <a href="${pageContext.request.contextPath}/role/list.do">角色管理</a>
    </shiro:hasPermission>
</div>